package com.kingdee.eas.custom.hr.attendance.app;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.eas.custom.hr.attendance.AttendanceDataLogInfo;
import com.kingdee.bos.metadata.entity.SelectorItemCollection;
import com.kingdee.eas.framework.CoreBaseCollection;
import com.kingdee.eas.framework.app.ObjectBaseControllerBean;
import com.kingdee.eas.custom.hr.attendance.AttendanceDataLogCollection;
import com.kingdee.eas.framework.CoreBaseInfo;
import java.util.ArrayList;
import com.kingdee.eas.framework.ObjectBaseCollection;
import java.util.List;



public abstract class AbstractAttendanceDataLogControllerBean extends ObjectBaseControllerBean implements AttendanceDataLogController
{
    protected AbstractAttendanceDataLogControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("4E82858B");
    }

    public AttendanceDataLogInfo getAttendanceDataLogInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("e61bd335-eb87-48fa-9652-0433e13318b9"), new Object[]{ctx, pk});
            invokeServiceBefore(svcCtx);
            AttendanceDataLogInfo retValue = (AttendanceDataLogInfo)_getValue(ctx, pk);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk);
    }

    public AttendanceDataLogInfo getAttendanceDataLogInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("957ac677-9fc8-4545-b315-90dd5f15ed26"), new Object[]{ctx, pk, selector});
            invokeServiceBefore(svcCtx);
            AttendanceDataLogInfo retValue = (AttendanceDataLogInfo)_getValue(ctx, pk, selector);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk, selector);
    }

    public AttendanceDataLogInfo getAttendanceDataLogInfo(Context ctx, String oql) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("a3341906-d209-4f9e-a090-c3770042968b"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            AttendanceDataLogInfo retValue = (AttendanceDataLogInfo)_getValue(ctx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, String oql) throws BOSException, EASBizException
    {
        return super._getValue(ctx, oql);
    }

    public AttendanceDataLogCollection getAttendanceDataLogCollection(Context ctx) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c82db96c-bbfc-4181-995e-9a3b5789e37d"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            AttendanceDataLogCollection retValue = (AttendanceDataLogCollection)_getCollection(ctx, svcCtx);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx) throws BOSException
    {
        return super._getCollection(ctx, svcCtx);
    }

    public AttendanceDataLogCollection getAttendanceDataLogCollection(Context ctx, EntityViewInfo view) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("83469533-48ae-40b4-84dd-11de9afc23a7"), new Object[]{ctx, view});
            invokeServiceBefore(svcCtx);
            AttendanceDataLogCollection retValue = (AttendanceDataLogCollection)_getCollection(ctx, svcCtx, view);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, EntityViewInfo view) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, view);
    }

    public AttendanceDataLogCollection getAttendanceDataLogCollection(Context ctx, String oql) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("8d015620-266a-4118-b241-8f1d4649908e"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            AttendanceDataLogCollection retValue = (AttendanceDataLogCollection)_getCollection(ctx, svcCtx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, String oql) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, oql);
    }

    public void submitAll(Context ctx, AttendanceDataLogCollection infos, IObjectPK[] pkList) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("018a328a-fc73-412b-b6fb-f58613d88694"), new Object[]{ctx, infos, pkList});
            invokeServiceBefore(svcCtx);
            _submitAll(ctx, infos, pkList);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _submitAll(Context ctx, IObjectCollection infos, IObjectPK[] pkList) throws BOSException, EASBizException
    {    	
        return;
    }

    public AttendanceDataLogCollection getCollectionByList(Context ctx, ArrayList arrList) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("799e19aa-1432-45f5-bedc-ff2c85351620"), new Object[]{ctx, arrList});
            invokeServiceBefore(svcCtx);
            AttendanceDataLogCollection retValue = (AttendanceDataLogCollection)_getCollectionByList(ctx, arrList);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollectionByList(Context ctx, ArrayList arrList) throws BOSException, EASBizException
    {    	
        return null;
    }

    public int checkAttendance(Context ctx, String[] id) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c2d5f59a-ae05-4f21-ad9d-8ba4f2f5bbee"), new Object[]{ctx, id});
            invokeServiceBefore(svcCtx);
            int retValue = (int)_checkAttendance(ctx, id);
            svcCtx.setMethodReturnValue(new Integer(retValue));
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected int _checkAttendance(Context ctx, String[] id) throws BOSException, EASBizException
    {    	
        return 0;
    }

    public int unCheckAttendance(Context ctx, String[] id) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("1fef0f91-9360-47d3-b241-0bb170bd9b00"), new Object[]{ctx, id});
            invokeServiceBefore(svcCtx);
            int retValue = (int)_unCheckAttendance(ctx, id);
            svcCtx.setMethodReturnValue(new Integer(retValue));
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected int _unCheckAttendance(Context ctx, String[] id) throws BOSException, EASBizException
    {    	
        return 0;
    }

    public void saveALL(Context ctx, AttendanceDataLogCollection infos) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("f98aa42a-8dc1-48cf-937f-cdcf7010c0af"), new Object[]{ctx, infos});
            invokeServiceBefore(svcCtx);
            _saveALL(ctx, infos);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _saveALL(Context ctx, IObjectCollection infos) throws BOSException, EASBizException
    {    	
        return;
    }

    public int unAudit(Context ctx, String[] id) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("d58e9361-1b15-4e54-9ff3-481d06103cc6"), new Object[]{ctx, id});
            invokeServiceBefore(svcCtx);
            int retValue = (int)_unAudit(ctx, id);
            svcCtx.setMethodReturnValue(new Integer(retValue));
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected int _unAudit(Context ctx, String[] id) throws BOSException, EASBizException
    {    	
        return 0;
    }

    public void setPosAndorgunit(Context ctx) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("62261ff8-64ee-426a-8f6c-372a514a8c88"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            _setPosAndorgunit(ctx);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _setPosAndorgunit(Context ctx) throws BOSException, EASBizException
    {    	
        return;
    }

    public void checkPositionAndOrg(Context ctx, List psList, List orgList, String orgId, boolean isInclude) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("6af5898a-f642-49c9-b1ce-6fcbb8849cb4"), new Object[]{ctx, psList, orgList, orgId, new Boolean(isInclude)});
            invokeServiceBefore(svcCtx);
            _checkPositionAndOrg(ctx, psList, orgList, orgId, isInclude);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _checkPositionAndOrg(Context ctx, List psList, List orgList, String orgId, boolean isInclude) throws BOSException, EASBizException
    {    	
        return;
    }

    public void saveAttendanceDataLog(Context ctx, AttendanceDataLogInfo attendanceDataLog) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("7ad1759c-e70a-4a6c-827d-604241ab6eb6"), new Object[]{ctx, attendanceDataLog});
            invokeServiceBefore(svcCtx);
            _saveAttendanceDataLog(ctx, attendanceDataLog);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _saveAttendanceDataLog(Context ctx, IObjectValue attendanceDataLog) throws BOSException, EASBizException
    {    	
        return;
    }

    public ObjectBaseCollection getObjectBaseCollection (Context ctx) throws BOSException
    {
    	return (ObjectBaseCollection)(getAttendanceDataLogCollection(ctx).cast(ObjectBaseCollection.class));
    }
    public ObjectBaseCollection getObjectBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (ObjectBaseCollection)(getAttendanceDataLogCollection(ctx, view).cast(ObjectBaseCollection.class));
    }
    public ObjectBaseCollection getObjectBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (ObjectBaseCollection)(getAttendanceDataLogCollection(ctx, oql).cast(ObjectBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBaseCollection)(getAttendanceDataLogCollection(ctx).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBaseCollection)(getAttendanceDataLogCollection(ctx, view).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBaseCollection)(getAttendanceDataLogCollection(ctx, oql).cast(CoreBaseCollection.class));
    }
}